package cn.krund.lyc.hotlerobot.Ros.service.communication;

import java.net.Socket;

/**
 * @包名: cn.krund.lyc.hotlerobot.robot.service.communication
 * @作者: 刘育成
 * @时间: 2018/4/5  14:37
 * @org: 克路德人工智能
 * @描述: TODO  心跳线程
 * @fileName: HeartBeatRunnable
 */

public class HeartBeatRunnable extends CommunicationRunnable {
    public HeartBeatRunnable(Socket socket, IRosCommunicationListener communicationListener) {
        super(socket, communicationListener);
    }

    @Override
    protected void socketHandler(Socket socket) throws Exception {
        while (m_socket.isConnected()) {

            Thread.sleep(5000);
        }
    }
}
